package com.library.service;

import com.library.common.base.ApiResult;
import com.library.entity.BookUserEntity;
import com.library.entity.terrainEntity;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;
import sun.security.util.SecurityConstants;

@FeignClient(contextId = "remoteBookUserService", value = "zzsly-ruralLibrary-biz")
public interface RemoteBookUserService {

    @PostMapping("/user/saveBookUser")
    ApiResult saveBookUser(@RequestBody BookUserEntity bookUserEntity, @RequestHeader("from") String from);

    @GetMapping("/summary/getOne/{id}")
    terrainEntity getOne(@PathVariable("id") String id, @RequestHeader("from") String from);
}
